package cn.tedu.controller;

import cn.tedu.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("car")
public class CarController {
    @Autowired
    @Qualifier("carServiceImpl")
    private CarService carService;
    @RequestMapping("get")
    public Object get(){
        return carService.get();
    }
}
